<?php 
header("content-type:text/html;charset=utf8");
//接id
$c_id=$_GET["id"];
//连选库
$db=new PDO("mysql:host=127.0.0.1;dbname=bj07c;charset=utf8","root","root");
$sql="select * from class where c_id=$c_id";
$res=$db->query($sql)->fetch(PDO::FETCH_ASSOC);
// print_r($res);die;
if($res)
{
	include("up.html");
}
 ?>